package net.wanho.hospital.service.impl;

import net.wanho.hospital.po.Checks;
import net.wanho.hospital.mapper.ChecksMapper;
import net.wanho.hospital.service.ChecksService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;
import org.springframework.util.ObjectUtils;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author 汤小洋
 * @since 2023-12-27
 */
@Service
public class ChecksServiceImpl extends ServiceImpl<ChecksMapper, Checks> implements ChecksService {

   /**
    *   按查询分页查询
    */
    @Override
    public IPage<Checks> findPage(int pageNum, int pageSize,Checks checks) {
        QueryWrapper<Checks> wrapper = null;
        IPage<Checks> page = new Page<>(pageNum, pageSize);
        page = this.page(page, wrapper);
        return page;
    }

}
